#include "widget.h"
#include "ui_widget.h"
#include <windows.h>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);


    connect(this,&Widget::mySignal,this,&Widget::handleSignal);
    Sleep(1000);
    emit mySignal();

}

Widget::~Widget()
{
    delete ui;
}

void Widget::handleSignal()
{
    this->setWindowTitle("处理自定义信号");
}

